package com.gdust.hzx.user.mapper;

import com.gdust.hzx.model.entity.user.UserAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: UserAddressMapper
 * Package: com.gdust.hzx.user.mapper
 * Description:
 *
 * @Author syun
 * @Create 2024/12/26 23:13
 * @Version 1.0
 */
@Mapper
public interface UserAddressMapper {
    /**
     * 根据Redis中获取的用户id获取用户地址
     * @param userId 用户id
     * @return
     */
    List<UserAddress> findUserAddressList(Long userId);

    /**
     * //根据id获取收货地址信息
     * @param id
     * @return
     */
    UserAddress getUserAddress(Long id);
}
